﻿@model Gfw.Web.Models.Stock.SellModel
@{
    ViewBag.Title = "卖出";
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}
@if (Model.CanSell)
{
    using (Html.BeginForm())
    {
        <ul>
            <li>
                @Html.LabelFor(model => model.CurrentPrice)
            </li>
            <li>
                @Html.DisplayFor(model => model.CurrentPrice)
            </li>
            <li>
                @Html.LabelFor(model => model.MaxCount)
            </li>
            <li>
                @Html.DisplayFor(model => model.MaxCount)
            </li>
            <li>
                @Html.LabelFor(model => model.SellCount)
            </li>
            <li>
                @Html.EditorFor(model => model.SellCount)
                @Html.HiddenFor(model => model.CurrentPrice)
                @Html.HiddenFor(model => model.MaxCount)
                @Html.ValidationMessageFor(model => model.SellCount)
                @Html.ValidationSummary(true)
            </li>
        </ul>
        <div class="button">
            @Html.ActionLink("返回", "Index")
            <input type="submit" value="提交" onclick="this.disabled = true; this.form.submit();"/>
        </div>

    }
}
else
{
    <h5>
        当前时间不能进行卖出操作。</h5>
    <div class="button">
        @Html.ActionLink("返回", "Index")
    </div>
}
